package nl.boektrust.btsoep.shared.model;

import java.io.Serializable;


public class Identifier implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 6253285203670503004L;
	int type; // 1 == viaf
	String value;
	/**
	 * @return the type
	 */
	public int getType() {
		return type;
	}

	/**
	 * @param type the type to set
	 */
	public void setType(int type) {
		this.type = type;
	}

	/**
	 * @return the value
	 */
	public String getValue() {
		return value;
	}

	/**
	 * @param value the value to set
	 */
	public void setValue(String value) {
		this.value = value;
	}


	public Identifier(int type, String value) {
		if (type != -1 && value.length() > 0) {
			this.type = type;
			this.value = value;
		}
	}
	
	public Identifier() {
		this(-1, "");
	}
	


	

}
